$("#global_navbar").find("a[href='#{top.location.pathname}']").parent().addClass("active").siblings().removeClass("active")

$(document).on "tap", "[data-href]", ()->
  href = $(this).attr("data-href")
  #微信浏览器链接加无关的参数form=wechat,防止无法跳转
  href = $.addUrlParam("from","wechat",href) if  $.isWeiXinClient()
  self.location.href = href if href
  false
